/** @format */

import { AppRegistry } from 'react-native';
import App from './app/App';
import { DemoScreen } from './app/demo/DemoScreen';
import { TaskScreen } from './app/task/TaskScreen';
import { BookScreen } from './app/book/BookScreen';
import { appid } from './package';
import { name as appName } from './app.json';
import AppDebug from './app/AppDebug';

//关闭其中某些yellow警告
console.ignoredYellowBox = ['Warning: BackAndroid is deprecated. Please use BackHandler instead.','source.uri should not be an empty string','Invalid props.style key'];
// 关闭全部yellow警告
console.disableYellowBox = true;

//上线使用
AppRegistry.registerConfig([
// {
//     appKey: 'bigeyes',
//     component: () => App,
//     appId: appid,
//     priority: 3
// },
{
    appKey: 'book',
    component: () => App,
    intent: ['demonstrate_app&open'], //intent配置给需要指令唤起的场景指令可以在后台配置
    appId: appid,
    priority: 3
},
{
    appKey: 'task',
    component: () => TaskScreen,
    appId: appid,
    priority: 3
},

{
    appKey: 'demo',
    component: () => DemoScreen,
    appId: appid,
    priority: 3
},


]);

//Debug调试使用
AppRegistry.registerComponent(appName, () => AppDebug);
